<?php

namespace App\Exceptions\Api;

use App\Exceptions\BaseException;

class TemplateMessageException extends BaseException
{

    /**
     * 错误码前缀
     * 子类继承需复写,不能和BaseException前缀一样
     *
     * @var int
     */
    protected $code_prefix = 600;

    /**
     * 错误码 code
     */
    const DATA_VALIDATOR_FAILURE = 1001; //Data Validator Failure
    const TEMPLATE_KEY_INVALID = 1002; //Template Key Invalid

    /**
     * ApiTokenException constructor.
     * @param $message
     * @param $code
     */
    public function __construct($message, $code)
    {
        parent::__construct($message, intval($code));
    }

}
